function main() {
    let self = this;
    return new Promise((resolve, reject) => {

        api.EXEC_FORMULA("UUID()").then(res => {
            let humanUUID = res.result;
            let params = {};
            const treeSelect = self.$$("tree_panel_19ontp").$$getSelection().selectedKeys[0];
            if (treeSelect) {
                debugger
                window.treeSelect = treeSelect;
                //获取树当前选中节点传入表单
                //返回key-value格式的参数，参数名为表单中需要赋值的组件id
                console.log(humanUUID);
                /**
                 * work_status_code work_status_name
                 * 1   在职     (直接新增为正式员工，不需要审核操作)
                 * 5   待入职   (需要进行审核)
                 */
                params = {
                    'tree_select': treeSelect,
                    'work_status_code': '5',
                    'work_status_name': '待入职',
                    'human_uuid': humanUUID
                };
            }
            resolve(params);
        }).catch(err => {
            reject(err);
        });
    });
}
